//
//  JsonSerializable.m
//  gongwei-ios
//
//  Created by gongwei-mac on 2020/1/21.
//  Copyright © 2020 gongwei-mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JsonSerializable.h"

@implementation JsonSerializable

-(void)fillFromDictionary:(NSDictionary *)dictionary {
    
}

-(NSMutableDictionary *)parseToDictionary {
    return nil;
}

-(NSString *)getClassName {
    return @"";
}

-(NSString *)getTypeId {
    return @"";
}

-(id) getJson:(JsonTagType)jsonTagType {
    switch (jsonTagType) {
        case JTT_CLASS:
            return [NSArray arrayWithObjects: [self getClassName], [self parseToDictionary: false], nil];
        case JTT_TYPE:
            return [self parseToDictionary: true];
        case JTT_NONE:
            return [self parseToDictionary: false];
        default:
            break;
    }
}

@end
